import axios from 'axios'

// 设置基准路径
axios.defaults.baseURL = 'http://127.0.0.1:3000'

// 商品列表一级分类
export const firstCateList = () => axios.get('/category/queryTopCategory')

// 商品列表二级分类
export const secondCateList = (id) => axios.get('/category/querySecondCategory', {params: {id}
})

// 搜索产品
export const SearchProduct = (obj) => axios.get('/product/queryProduct', {params: obj})
